#-*- coding:utf-8 -*-
import requests
from bs4 import BeautifulSoup
from selenium import webdriver
from multiprocessing import Pool
from multiprocessing.dummy import Pool as TheaderPool
import re
import pymongo
import json
import urllib
#https://s.taobao.com/search?q=%E7%94%B7%E8%A3%85&imgfile=&js=1&style=list&stats_click=search_radio_all%3A1&initiative_id=staobaoz_20170130&ie=utf8
#https://s.taobao.com/search?q=%E5%A5%B3%E8%A3%85&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.1000386.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170130

def taobao(name):
    name_url=[]
    name_sum_dict={}

    #print name
    #name_fee_TrueFalse=0

    #这里必须要进行URL转换,因为URL中不能包含中文.

    #print urllib.quote(name.encode('utf-8'))
    url =r'https://s.taobao.com/search?q='+(urllib.quote(name.encode('utf-8')))+'&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.1000386.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170130'
    #使用无界面浏览器phantomJS来打开,后面参数是浏览器的路径
    #print 1
    driver = webdriver.PhantomJS(executable_path=r"/Users/qinyalai422/Downloads/phantomjs-2.1.1-macosx/bin/phantomjs")
    driver.get(url)
    driver.implicitly_wait(3)
    page = driver.page_source
    soup = BeautifulSoup(page,'lxml')
    #print soup

    name_title=re.findall(r'"raw_title":"(.*?)","pic_url":',str(soup))#商品标题
    name_img=re.findall(r'"pic_url":"(.*?)","detail_url"',str(soup))#商品图片
    name_id=re.findall(r'"nid":"(.*?)","category"',str(soup))#商品ID,使用商品ID来进入商品详情页.
    for i in range(len(name_id)):
        name_url.append('http://detail.tmall.com/item.htm?id='+name_id[i]+'&amp;ad_id=&amp;am_id=&amp;cm_id=140105335569ed55e27b&amp;pm_id=&amp;abbucket=0')
        #523774189583
    name_Dname=re.findall(r'"nick":"(.*?)","shopcard"',str(soup))#店名
    name_jiage=re.findall(r'"view_price":"(.*?)","view_fee":',str(soup))#商品价格
    name_jiaoyinum=re.findall(r'"view_sales":"(.*?)","comment_count":',str(soup))#商品交易次数
    name_fahuodi=re.findall(r'"item_loc":"(.*?)","view_sales":',str(soup))#商品发货地
    name_fee=re.findall(r'"view_fee":"(.*?)",',str(soup))#邮费



    '''
    for i in range(len(name_title)):
        name_img_dict['图片%d'%(i)]='http:'+name_img[i]
        name_url_dict['商品地址%d'%(i)]=name_url[i]
        name_Dname_dict['店名%d'%(i)]=name_Dname[i]
        name_jiage_dict['价格%d'%(i)]=name_jiage[i]
        name_jiaoyinum_dict['交易次数%d'%(i)]=name_jiaoyinum[i]
        name_fahuodi_dict['发货地%d'%(i)]=name_fahuodi[i]
        name_fee_dict['邮费%d'%(i)]=name_fee[i]
    '''
    #构建嵌套字典,储存商品信息
    for i in range(len(name_title)):
        name_sum_dict.setdefault(name_title[i],{})[i]={}
        name_sum_dict[name_title[i]][i]['img']='http:'+name_img[i]
        name_sum_dict[name_title[i]][i]['url']=name_url[i]
        name_sum_dict[name_title[i]][i]['dname']=name_Dname[i]
        name_sum_dict[name_title[i]][i]['jiage']=name_jiage[i]
        name_sum_dict[name_title[i]][i]['jiaoyinum']=name_jiaoyinum[i]
        name_sum_dict[name_title[i]][i]['fahuodi']=name_fahuodi[i]
        name_sum_dict[name_title[i]][i]['fee']=float(name_fee[i].encode('utf-8'))
    #print name_sum_dict
    return name_sum_dict

#淘宝10元包邮秒杀
def taobao_10baoyou():
    name_sum_dict={}
    '''
    https://img.alicdn.com/imgextra/i2/1496905000811147219/TB1qJslPXXXXXaPXFXXXXXXXXXX_!!0-tejia.jpg_350x350q90.jpg
    http://                https://img.alicdn.com/imgextra/i2/1496905000811147219/TB1qJslPXXXXXaPXFXXXXXXXXXX_!!0-tejia.jpg
'''
    url=r'https://zhi.taobao.com/json/fantomasItems.htm?t=1486049034273&_input_charset=utf-8&sort=&appId=9&blockId=912&bucketId=1&pageSize=102&startRow=0&extQuery=&thirdQuery&viewId=28b3b533-153f-1e00-b20b-56f54728915c&requestId=04e7a9f3-5cb3-74a9-a55c-a8def61d35ef&flowId=25&topIds=&_ksTS=1486049034275_35&callback=jsonp36'
    driver = webdriver.PhantomJS(executable_path=r"/Users/qinyalai422/Downloads/phantomjs-2.1.1-macosx/bin/phantomjs")
    driver.get(url)
    driver.implicitly_wait(3)
    page = driver.page_source
    soup = BeautifulSoup(page,'lxml')


    name_title=re.findall(r'"title":"(.*?)",',str(soup))#标题
    name_dm=re.findall(r'"shopName":"(.*?)",',str(soup))#店名称
    name_id=re.findall(r'"itemId":"(.*?)",',str(soup))#商品的ID 购买页面就是用这个来进入
    name_oldjia=re.findall(r'"reservePrice":"(.*?)",',str(soup))#原价
    name_newjia=re.findall(r'"discountPrice":"(.*?)",',str(soup))#n
    name_img=re.findall(r'"activityPicUrl":"(.*?)",',str(soup))#图片地址要加上https://img.alicdn.com/imgextra/
    name_nowmc=re.findall(r'"currentSellOut":"(.*?)",',str(soup))#当前卖出多少件
    name_suml=re.findall(r'"quantity": "(.*?)",',str(soup))#总的库存
    #print name_title,name_dm,name_id,name_oldjia,name_newjia,name_img,name_nowmc,name_suml
    for i in range(len(name_title)):
        name_sum_dict.setdefault(name_title[i],{})[i]={}
        name_sum_dict[name_title[i]][i]['dm']=name_dm[i]#
        name_sum_dict[name_title[i]][i]['id']=r'https://item.taobao.com/item.htm?id='+name_id[i]#
        name_sum_dict[name_title[i]][i]['oldjia']=name_oldjia[i]#
        name_sum_dict[name_title[i]][i]['newjia']=name_newjia[i]#
        name_sum_dict[name_title[i]][i]['img']=r'https://img.alicdn.com/imgextra/'+name_img[i]#
        name_sum_dict[name_title[i]][i]['nowmc']=float(name_nowmc[i].encode('utf-8'))#
        name_sum_dict[name_title[i]][i]['suml']=float(name_suml[i].encode('utf-8'))
        print name_title[i].decode('unicode_escape')
    return name_sum_dict


    #print name_fee,len(name_fee),type(name_fee[0]),'\n',len(name_fee[10])




    #//detail.tmall.com/item.htm?id=44214019043&amp;ad_id=&amp;am_id=&amp;cm_id=140105335569ed55e27b&amp;pm_id=&amp;abbucket=0


'''
    原方法:
    cate_name_title = re.findall(r'<img alt="(.*?)" class=',str(soup))#标题
    #cate_name_Ximg=re.findall(r'class="J_ItemPic img" data-ks-lazyload="(.*?)" data-src',str(soup))#小图图片地址,URL不够准确,弃之不用.
    cate_name_Dimg=re.findall(r'data-src="(.*?)" id',str(soup))#大图地址
    cate_name_add=re.findall(r'data-href="(.*?)" data-nid',str(soup))#地址
    cate_name_jg=re.findall(r'<span>¥</span><strong>(.*?)</strong>',str(soup))#价格
    cate_name_fhd=re.findall(r'<div class="location">(.*?)</div>',str(soup))#发货地
    cate_name_dl=re.findall(r'<div class="deal-cnt">(.*?)</div>',str(soup))#多少人付款
    cate_name_dm=re.findall(r'uid=(.*?)&amp;',str(soup),re.M)#店名
    cate_name_tmp=re.findall(r'data-nid="(.*?)" data-userid=',str(soup))#补充,用来找不到商品地址是替代

    for p in range(len(cate_name_add)-1):
        if 'http' in cate_name_add[p]:
            cate_name_add[p]=r'//detail.tmall.com/item.htm?id='+cate_name_tmp[p]+'&amp;ns=1&amp;abbucket=0'


    #print cate_name_jg[0],'\n',cate_name_fhd[0],'\n',cate_name_dl[0],'\n',cate_name_pls[0],'\n',cate_name_dm[0]
    #print '标题:%s,\n图片地址:%s,\n页面详情地址:%s,\n,价格:%s,\n发货地:%s,\n多少人付款:%s,\n评论:%s,\n店名:%s,\n'%(cate_name_title[0],cate_name_Dimg[0],cate_name_add[0],cate_name_jg[0],cate_name_fhd[0],cate_name_dl[0],cate_name_pls[0],cate_name_dm[0])


    for i in cate_name_dm:
        print i
    print len(cate_name_title),len(cate_name_Dimg),len(cate_name_add),len(cate_name_fhd),len(cate_name_dl),len(cate_name_dm),len(cate_name_jg)
    for i in range(48):
        print cate_name_title[i]
        print cate_name_Dimg[i]
        print cate_name_add[i]
    print cate_name_dm[0]
    #print cate_name_title[0].decode('utf-8'),'\n',cate_name_Dimg,'\n',cate_name_add,'\n'

    #标题转码




    for i in cate_name_title:
        new_cate_name_title.append(i.decode('utf-8'))
    for i in range(0,48):
        cate_name_add[i]='http:%s'%cate_name_add[i]
        cate_name_Dimg[i]='http:%s'%cate_name_Dimg[i]
        sum_url.setdefault(cate_name_title[i],{})['图片地址:']=cate_name_Dimg[i]
        sum_url.setdefault(cate_name_title[i],{})['店家地址:']=cate_name_dm[i]
    print sum_url














jsonp220({
    "API.CustomizedApi":
        {"itemlist":
             {"auctions":
                  [{"i2iTags":
                        {"samestyle":
                             {"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1674264953\u0026nid\u003d531030603017"},
                    "similar":
                                {"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1674264953\u0026nid\u003d531030603017"}},
                    "p4pTags":[],
                    "nid":"531030603017","category":"50012036","pid":"-1674264953","title":"秋冬黑白情侣休闲运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e皮面防水大码女\u003cspan class\u003dH\u003e鞋\u003c/span\u003e防滑跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e波\u003cspan class\u003dH\u003e鞋\u003c/span\u003e特价",
                    "raw_title":"秋冬黑白情侣休闲运动鞋男鞋皮面防水大码女鞋防滑跑步鞋波鞋特价","pic_url":"//g-search3.alicdn.com/img/bao/uploaded/i4/i1/2034002814/TB2_X0fXsCO.eBjSZFzXXaRiVXa_!!2034002814.jpg","detail_url":"//item.taobao.com/item.htm?id\u003d531030603017\u0026ns\u003d1\u0026abbucket\u003d0#detail","view_price":"48.00","view_fee":"0.00","item_loc":"河北 保定","view_sales":"20人付款","comment_count":"17","user_id":"2034002814","nick":"伊美宜鞋坊","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"}],"isTmall":false,"delivery":[465,-1,290],"description":[462,-1,363],"service":[468,-1,282],"encryptedUserId":"UvCNGMmNWvCgYMNTT","sellerCredit":8,"totalRate":9384},"icon":[{"title":"卖家提供以下贴心服务：","dom_class":"icon-service-fuwu","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-fuwu","trace":"srpservice","innerText":"分组-服务","iconPopupComplex":{"popup_title":"卖家提供以下贴心服务：","subIcons":[{"dom_class":"icon-service-7tianjia","icon_content":"8天退货"}]}},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//item.taobao.com/item.htm?id\u003d531030603017\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d2034002814","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-2129065892\u0026nid\u003d523214086227"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-2129065892\u0026nid\u003d523214086227"}},"p4pTags":[],"nid":"523214086227","category":"50012043","pid":"-2129065892","title":"正品阿迪达斯\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e17春高帮运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e三叶草休闲板\u003cspan class\u003dH\u003e鞋\u003c/span\u003eS 75968 BB 4990","raw_title":"正品阿迪达斯男鞋17春高帮运动鞋三叶草休闲板鞋S 75968 BB 4990","pic_url":"//g-search1.alicdn.com/img/bao/uploaded/i4/i3/TB15RIaNVXXXXaIaXXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d523214086227\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"559.00","view_fee":"12.00","item_loc":"湖南 长沙","view_sales":"86人付款","comment_count":"434","user_id":"654162011","nick":"酷锐运动专营店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-jinguan"}],"isTmall":true,"delivery":[467,-1,202],"description":[476,-1,160],"service":[472,-1,140],"encryptedUserId":"UMC80vFxyvmHY","sellerCredit":16,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}},{"title":"当季新品","dom_class":"icon-service-xinpin","position":"1","show_type":"0","icon_category":"cat_special","outer_text":"0","html":"","icon_key":"icon-service-xinpin","trace":"srpservice","innerText":"新品","url":"//service.taobao.com/support/knowledge-1138476.htm"}],"comment_url":"//detail.tmall.com/item.htm?id\u003d523214086227\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d654162011","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-351392829\u0026nid\u003d524843916122"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-351392829\u0026nid\u003d524843916122"}},"p4pTags":[],"nid":"524843916122","category":"50012043","pid":"-351392829","title":"贵人鸟\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e2016新品运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e猴年款\u003cspan class\u003dH\u003e男子\u003c/span\u003e休闲\u003cspan class\u003dH\u003e鞋\u003c/span\u003e透气轻便耐磨板\u003cspan class\u003dH\u003e鞋\u003c/span\u003e","raw_title":"贵人鸟男鞋2016新品运动鞋猴年款男子休闲鞋透气轻便耐磨板鞋","pic_url":"//g-search1.alicdn.com/img/bao/uploaded/i4/i2/TB1D3EOKFXXXXcKXVXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d524843916122\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"99.00","view_fee":"0.00","item_loc":"福建 厦门","view_sales":"69人付款","comment_count":"378","user_id":"720594490","nick":"贵人鸟官方运动旗舰店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-jinguan"}],"isTmall":true,"delivery":[465,-1,262],"description":[476,-1,153],"service":[465,-1,285],"encryptedUserId":"UMGIWMFk0MmkW","sellerCredit":16,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//detail.tmall.com/item.htm?id\u003d524843916122\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d720594490","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1190429394\u0026nid\u003d542795360212"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1190429394\u0026nid\u003d542795360212"}},"p4pTags":[],"nid":"542795360212","category":"50012036","pid":"-1190429394","title":"耐克\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e秋冬季Air Max全掌气垫缓震女\u003cspan class\u003dH\u003e鞋\u003c/span\u003e透气运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e806771","raw_title":"耐克男鞋跑步鞋秋冬季Air Max全掌气垫缓震女鞋透气运动鞋806771","pic_url":"//g-search3.alicdn.com/img/bao/uploaded/i4/i4/408510493/TB2bMnxXtBopuFjSZPcXXc9EpXa_!!408510493.png","detail_url":"//item.taobao.com/item.htm?id\u003d542795360212\u0026ns\u003d1\u0026abbucket\u003d0#detail","view_price":"499.00","view_fee":"0.00","item_loc":"上海","view_sales":"69人付款","comment_count":"33","user_id":"408510493","nick":"tangtao19894946","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-guan"}],"isTmall":false,"delivery":[480,1,316],"description":[478,0,0],"service":[483,1,863],"encryptedUserId":"UMmN4MFHWMmkG","sellerCredit":11,"totalRate":9727},"icon":[{"title":"探索全球美好生活","dom_class":"icon-fest-quanqiugou","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-fest-quanqiugou","trace":"srpservice","innerText":"全球购","url":"//global.taobao.com/","iconPopupNormal":{"dom_class":"icon-fest-quanqiugouhover"}},{"title":"金牌卖家从千万卖家中脱颖而出，会为您的购物体验带来更多信任和安心","dom_class":"icon-service-jinpaimaijia","position":"1","show_type":"0","icon_category":"shop","outer_text":"0","html":"","icon_key":"icon-service-jinpaimaijia","trace":"srpservice","innerText":"金牌卖家","url":"//www.taobao.com/go/act/jpmj.php","iconPopupNormal":{"dom_class":"icon-service-jinpaimaijia-l"}},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//item.taobao.com/item.htm?id\u003d542795360212\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d408510493","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1760496427\u0026nid\u003d542486453145"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1760496427\u0026nid\u003d542486453145"}},"p4pTags":[],"nid":"542486453145","category":"50012036","pid":"-1760496427","title":"亞太新百倫亞太有限公司574\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e春季女\u003cspan class\u003dH\u003e鞋\u003c/span\u003e正品2017新款透气运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e","raw_title":"亞太新百倫亞太有限公司574男鞋春季女鞋正品2017新款透气运动鞋","pic_url":"//g-search2.alicdn.com/img/bao/uploaded/i4/i1/1991146926/TB2FvlndwhJc1FjSZFDXXbvnFXa_!!1991146926.jpg","detail_url":"//item.taobao.com/item.htm?id\u003d542486453145\u0026ns\u003d1\u0026abbucket\u003d0#detail","view_price":"188.00","view_fee":"0.00","item_loc":"浙江 杭州","view_sales":"11人付款","comment_count":"33","user_id":"1991146926","nick":"yibin669","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-zuan"}],"isTmall":false,"delivery":[493,1,6873],"description":[491,1,5415],"service":[494,1,6583],"encryptedUserId":"UvFkSvFH0MCkyMgTT","sellerCredit":6,"totalRate":9906},"icon":[{"title":"卖家提供以下贴心服务：","dom_class":"icon-service-fuwu","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-fuwu","trace":"srpservice","innerText":"分组-服务","iconPopupComplex":{"popup_title":"卖家提供以下贴心服务：","subIcons":[{"dom_class":"icon-service-7tianjia","icon_content":"15天退货"}]}},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//item.taobao.com/item.htm?id\u003d542486453145\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d1991146926","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1642723032\u0026nid\u003d540222681101"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1642723032\u0026nid\u003d540222681101"}},"p4pTags":[],"nid":"540222681101","category":"50012036","pid":"-1642723032","title":"阿迪达斯\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e 2016冬季新款marathon轻便减震运动跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003eAQ7874","raw_title":"阿迪达斯男鞋 2016冬季新款marathon轻便减震运动跑步鞋AQ7874","pic_url":"//g-search3.alicdn.com/img/bao/uploaded/i4/i3/TB1h75wOpXXXXcdXFXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d540222681101\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"519.00","view_fee":"6.00","item_loc":"江苏 苏州","view_sales":"51人付款","comment_count":"102","user_id":"1808940384","nick":"yysports官方旗舰店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"}],"isTmall":true,"delivery":[474,-1,72],"description":[479,-1,114],"service":[475,-1,89],"encryptedUserId":"UvFgWOmk0vmv4MNTT","sellerCredit":14,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}},{"title":"当季新品","dom_class":"icon-service-xinpin","position":"1","show_type":"0","icon_category":"cat_special","outer_text":"0","html":"","icon_key":"icon-service-xinpin","trace":"srpservice","innerText":"新品","url":"//service.taobao.com/support/knowledge-1138476.htm"}],"comment_url":"//detail.tmall.com/item.htm?id\u003d540222681101\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d1808940384","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1442700435\u0026nid\u003d540675487403"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1442700435\u0026nid\u003d540675487403"}},"p4pTags":[],"nid":"540675487403","category":"50012036","pid":"-1442700435","title":"新百倫中國控股有限公司授权秋冬季运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003eW NB 574\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e女\u003cspan class\u003dH\u003e鞋\u003c/span\u003e跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e","raw_title":"新百倫中國控股有限公司授权秋冬季运动鞋W NB 574男鞋女鞋跑步鞋","pic_url":"//g-search1.alicdn.com/img/bao/uploaded/i4/i3/1760021186/TB2RdPPa2TJXuFjSspeXXapipXa_!!1760021186.png","detail_url":"//item.taobao.com/item.htm?id\u003d540675487403\u0026ns\u003d1\u0026abbucket\u003d0#detail","view_price":"403.00","view_fee":"0.00","item_loc":"上海","view_sales":"22人付款","comment_count":"20","user_id":"1760021186","nick":"z花样年华h","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-xin"},{"levelClass":"icon-supple-level-xin"},{"levelClass":"icon-supple-level-xin"}],"isTmall":false,"delivery":[468,-1,221],"description":[474,-1,115],"service":[471,-1,222],"encryptedUserId":"UvFcLvmNyvFH4MgTT","sellerCredit":3,"totalRate":9591},"icon":[],"comment_url":"//item.taobao.com/item.htm?id\u003d540675487403\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d1760021186","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1357078298\u0026nid\u003d541179312651"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1357078298\u0026nid\u003d541179312651"}},"p4pTags":[],"nid":"541179312651","category":"50012036","pid":"-1357078298","title":"Adidas EQT Support ADV冬季保暖\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e黑白皮面轻便透气运动休闲\u003cspan class\u003dH\u003e鞋\u003c/span\u003e","raw_title":"Adidas EQT Support ADV冬季保暖男鞋黑白皮面轻便透气运动休闲鞋","pic_url":"//g-search2.alicdn.com/img/bao/uploaded/i4/i1/197596282/TB2wBFye4eK.eBjSZFuXXcT4FXa_!!197596282.jpg","detail_url":"//item.taobao.com/item.htm?id\u003d541179312651\u0026ns\u003d1\u0026abbucket\u003d0#detail","view_price":"300.00","view_fee":"0.00","item_loc":"浙江 宁波","view_sales":"18人付款","comment_count":"28","user_id":"197596282","nick":"好惠多家居生活馆","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"},{"levelClass":"icon-supple-level-zuan"}],"isTmall":false,"delivery":[475,-1,83],"description":[466,-1,268],"service":[471,-1,222],"encryptedUserId":"UvFkuMFkLvCgy","sellerCredit":10,"totalRate":9894},"icon":[{"title":"卖家提供以下贴心服务：","dom_class":"icon-service-fuwu","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-fuwu","trace":"srpservice","innerText":"分组-服务","iconPopupComplex":{"popup_title":"卖家提供以下贴心服务：","subIcons":[{"dom_class":"icon-service-7tianjia","icon_content":"8天退货"}]}},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"},{"dom_class":"icon-service-fangxintao","icon_content":"放心淘","html":"\u003ca tracenum\u003d\"1\" trace\u003d\"srpservice\" href\u003d\"https://www.taobao.com/markets/fxt/introduce\" target\u003d\"_blank\" title\u003d\"放心淘\" class\u003d\"service-text-icon\" style\u003d\"color:#fff;background-color: #ffa113;border-color:#ffa113; \"\u003e放心淘\u003c/a\u003e"}]}}],"comment_url":"//item.taobao.com/item.htm?id\u003d541179312651\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d197596282","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-788058831\u0026nid\u003d535892922084"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-788058831\u0026nid\u003d535892922084"}},"p4pTags":[],"nid":"535892922084","category":"50012036","pid":"-788058831","title":"乔丹运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男\u003c/span\u003e2017新品跑\u003cspan class\u003dH\u003e鞋\u003c/span\u003e耐磨防滑旅游\u003cspan class\u003dH\u003e鞋\u003c/span\u003e皮面休闲\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男\u003c/span\u003e","raw_title":"乔丹运动鞋男鞋跑步鞋男2017新品跑鞋耐磨防滑旅游鞋皮面休闲鞋男","pic_url":"//g-search2.alicdn.com/img/bao/uploaded/i4/i4/TB1yPe8PXXXXXcDXFXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d535892922084\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"179.00","view_fee":"0.00","item_loc":"福建 厦门","view_sales":"11人付款","comment_count":"75","user_id":"1057939680","nick":"淘科运动户外专营店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"}],"isTmall":true,"delivery":[473,-1,88],"description":[484,0,0],"service":[475,-1,89],"encryptedUserId":"UvFNbMGkGOFx4vNTT","sellerCredit":14,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//detail.tmall.com/item.htm?id\u003d535892922084\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d1057939680","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1759902154\u0026nid\u003d535336319945"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1759902154\u0026nid\u003d535336319945"}},"p4pTags":[],"nid":"535336319945","category":"50012036","pid":"-1759902154","title":"贵人鸟\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e秋冬季运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男\u003c/span\u003e透气复古慢跑\u003cspan class\u003dH\u003e鞋\u003c/span\u003e耐磨休闲\u003cspan class\u003dH\u003e鞋\u003c/span\u003e反绒皮跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e","raw_title":"贵人鸟男鞋秋冬季运动鞋男透气复古慢跑鞋耐磨休闲鞋反绒皮跑步鞋","pic_url":"//g-search1.alicdn.com/img/bao/uploaded/i4/i3/TB1Kwr4OFXXXXaLXpXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d535336319945\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"139.00","view_fee":"0.00","item_loc":"福建 泉州","view_sales":"261人付款","comment_count":"313","user_id":"720594490","nick":"贵人鸟官方运动旗舰店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-jinguan"}],"isTmall":true,"delivery":[465,-1,262],"description":[476,-1,153],"service":[465,-1,285],"encryptedUserId":"UMGIWMFk0MmkW","sellerCredit":16,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//detail.tmall.com/item.htm?id\u003d535336319945\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d720594490","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1691686773\u0026nid\u003d44581269689"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-1691686773\u0026nid\u003d44581269689"}},"p4pTags":[],"nid":"44581269689","category":"50012036","pid":"-1691686773","title":"特步\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e冬季运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e\u003cspan class\u003dH\u003e男\u003c/span\u003e跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e2016秋季革面减震旅游休闲\u003cspan class\u003dH\u003e鞋\u003c/span\u003e革面\u003cspan class\u003dH\u003e鞋子\u003c/span\u003e","raw_title":"特步男鞋冬季运动鞋男跑步鞋2016秋季革面减震旅游休闲鞋革面鞋子","pic_url":"//g-search3.alicdn.com/img/bao/uploaded/i4/i3/TB1dSQ3PXXXXXXeXpXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d44581269689\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"169.00","view_fee":"0.00","item_loc":"福建 厦门","view_sales":"36人付款","comment_count":"294","user_id":"2220852008","nick":"特步神知专卖店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"}],"isTmall":true,"delivery":[471,-1,135],"description":[483,0,0],"service":[474,-1,108],"encryptedUserId":"UvCIyvmgbvCNWONTT","sellerCredit":13,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}}],"comment_url":"//detail.tmall.com/item.htm?id\u003d44581269689\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d2220852008","risk":""},{"i2iTags":{"samestyle":{"url":"/search?type\u003dsamestyle\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-939252450\u0026nid\u003d540629108201"},"similar":{"url":"/search?type\u003dsimilar\u0026app\u003di2i\u0026rec_type\u003d1\u0026uniqpid\u003d-939252450\u0026nid\u003d540629108201"}},"p4pTags":[],"nid":"540629108201","category":"50012036","pid":"-939252450","title":"Nike/耐克\u003cspan class\u003dH\u003e男鞋\u003c/span\u003e跑步\u003cspan class\u003dH\u003e鞋\u003c/span\u003e2017春季新款AIR ZOOM透气运动\u003cspan class\u003dH\u003e鞋\u003c/span\u003e831561-001","raw_title":"Nike/耐克男鞋跑步鞋2017春季新款AIR ZOOM透气运动鞋831561-001","pic_url":"//g-search2.alicdn.com/img/bao/uploaded/i4/i3/TB1fuWIOpXXXXcuXXXXXXXXXXXX_!!0-item_pic.jpg","detail_url":"//detail.tmall.com/item.htm?id\u003d540629108201\u0026ns\u003d1\u0026abbucket\u003d0","view_price":"489.00","view_fee":"12.00","item_loc":"湖南 长沙","view_sales":"177人付款","comment_count":"46","user_id":"714469644","nick":"金腾运动专营店","shopcard":{"levelClasses":[{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"},{"levelClass":"icon-supple-level-guan"}],"isTmall":true,"delivery":[468,-1,193],"description":[476,-1,155],"service":[473,-1,135],"encryptedUserId":"UMGH0MmxSMCQ0","sellerCredit":15,"totalRate":10000},"icon":[{"title":"尚天猫，就购了","dom_class":"icon-service-tianmao","position":"1","show_type":"0","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-tianmao","trace":"srpservice","innerText":"天猫宝贝","url":"//www.tmall.com/"},{"title":"保险理赔","dom_class":"icon-service-baoxian","position":"99","show_type":"1","icon_category":"baobei","outer_text":"0","html":"","icon_key":"icon-service-baoxian","trace":"srpservice","innerText":"分组-保险理赔","iconPopupComplex":{"popup_title":"保险理赔","subIcons":[{"dom_class":"icon-service-yunfeixian","icon_content":"卖家赠送退货运费险"}]}},{"title":"当季新品","dom_class":"icon-service-xinpin","position":"1","show_type":"0","icon_category":"cat_special","outer_text":"0","html":"","icon_key":"icon-service-xinpin","trace":"srpservice","innerText":"新品","url":"//service.taobao.com/support/knowledge-1138476.htm"}],"comment_url":"//detail.tmall.com/item.htm?id\u003d540629108201\u0026ns\u003d1\u0026abbucket\u003d0\u0026on_comment\u003d1","shopLink":"//store.taobao.com/shop/view_shop.htm?user_number_id\u003d714469644","risk":""}],"trace":"auction_customized","query":"男鞋"}}});</pre></body></html>

'''